<html> 
<script> 

function a()
{
	chrome.tabs.getSelected(null, function(tab) { 
		chrome.tabs.sendRequest(tab.id, {action: "24ur.com"}, function(response) { 
			alert(response.result); 
		}); 
	}); 
}

function b()
{
	chrome.tabs.getSelected(null, function(tab) { 
		chrome.tabs.sendRequest(tab.id, {action: "vizita.si"}, function(response) { 
			alert(response.result); 
		}); 
	}); 
}

</script> 
<button onclick="a()">24ur.com</button>
<button onclick="b()">vizita.si</button>
</html> 

